<template>
  <div>
    <BasicTable @register="registerTable" />
  </div>
</template>

<script lang="ts" setup>
import { BasicTable, useTable } from '/@/components/Table';
import { getRequestLogPageApi } from '/@/api/monitor/request-log';
import { columns, searchFormSchema } from './index-option';

const [registerTable] = useTable({
  title: '请求日志',
  api: getRequestLogPageApi,
  rowKey: 'logId',
  columns,
  formConfig: {
    labelWidth: 80,
    schemas: searchFormSchema,
  },
  striped: false,
  useSearchForm: true,
  bordered: true,
  canResize: true,
  ellipsis: true,
});
</script>
